package com.ruoyi.student.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.student.api.factory.ClassServicefallbackFactory;
import com.ruoyi.student.domain.TClass;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "classService", path = "class", value = ServiceNameConstants.STUDENT_SERVICE, fallbackFactory = ClassServicefallbackFactory.class)
public interface ClassService {
    @GetMapping(value = "/student/{id}")
    AjaxResult getInfo(@PathVariable("id") Long id);

    @GetMapping("/listClass")
    List<TClass> listClass();
}
